

import java.io.Serializable;

public class Client implements Serializable{
    protected int id;
    protected String name;
    protected String password;
    protected String email;
    protected float cash;   
    protected int type;// 1 Execute Client, 2 Advisory, 3 full client
    public Client(int ID, String NAME, String PASSWORD, String EMAIL, float CASH)
    {
      this.id = ID;
      this.name = NAME;
      this.password = PASSWORD;
      this.email = EMAIL;
      this.cash = CASH;
      this.type = 1;
      //System.out.println("Client");
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
 
     public String getPassword() {
        return password;
    }   
       public void setPassword(String password) {
        this.password = password;
    }
  
      public String getEmail() {
        return email;
    } 
     public void setEmail(String email) {
        this.email = email;
    }
    public float getCash() {
        return cash;
    }
    public void setCash(float cash) {
        this.cash = cash;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public void depositCash(float balance)
    {
        this.cash = this.cash + balance; 
        System.out.print("Cashx: ");
        System.out.println(this.cash);
    }
    public void withdrawCash(float balance)
    {
        this.cash = this.cash - balance;
        System.out.print("Cashy: ");
        System.out.println(this.cash);
    }
}    